SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 45227: Invalid format of DATE18. generated by EFI, PROC IMPORT and IMPORT WIZARD

DetailsAboutRate It

When EFI, PROC IMPORT, or the IMPORT WIZARD encounter a datetime value with zeros for the time portion, a format of DATE18. is assigned. DATE18. is invalid due to the width portion and therefore an ERROR is returned for the FORMAT statement in the generated DATA step code in the SAS log. The problem has been fixed in SAS 9.3 TS1M1.

If you are using SAS 9.3 and PROC IMPORT to read the external file, you can do one of the following workarounds:

1) Recall the generated DATA step code from the SAS log assuming you are running SAS interactively. Then modify the FORMAT statement for the variable with the invalid width by changing the width to 9. in place of 18. You can recall the generated DATA step code by doing a RUN-RECALL LAST SUBMIT after the PROC IMPORT.

2) Use a DATA step with INFILE and INPUT statements instead of PROC IMPORT to read the external file.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for x649.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 Standard Edition9.3 TS1M09.3 TS1M1
Microsoft Windows Server 2003 for x649.3 TS1M09.3 TS1M1
Microsoft Windows Server 20089.3 TS1M09.3 TS1M1
Microsoft Windows Server 2008 for x649.3 TS1M09.3 TS1M1
Microsoft Windows XP Professional9.3 TS1M09.3 TS1M1
Windows 7 Enterprise 32 bit9.3 TS1M09.3 TS1M1
Windows 7 Enterprise x649.3 TS1M09.3 TS1M1
Windows 7 Home Premium 32 bit9.3 TS1M09.3 TS1M1
Windows 7 Home Premium x649.3 TS1M09.3 TS1M1
Windows 7 Professional 32 bit9.3 TS1M09.3 TS1M1
Windows 7 Professional x649.3 TS1M09.3 TS1M1
Windows 7 Ultimate 32 bit9.3 TS1M09.3 TS1M1
Windows 7 Ultimate x649.3 TS1M09.3 TS1M1
Windows Vista9.3 TS1M09.3 TS1M1
Windows Vista for x649.3 TS1M09.3 TS1M1
64-bit Enabled AIX9.3 TS1M09.3 TS1M1
64-bit Enabled HP-UX9.3 TS1M09.3 TS1M1
64-bit Enabled Solaris9.3 TS1M09.3 TS1M1
HP-UX IPF9.3 TS1M09.3 TS1M1
Linux9.3 TS1M09.3 TS1M1
Linux for x649.3 TS1M09.3 TS1M1
Solaris for x649.3 TS1M09.3 TS1M1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.